package cn.tq.oa.action;

import cn.tq.oa.service.TestService;
import com.opensymphony.xwork2.ActionSupport;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * @Author：张军
 * @Date:create in 2018/1/7 11:09
 * @Description:
 */
@Controller
@Scope("prototype")
public class TestAction extends ActionSupport {
    @Resource
    private TestService testService;
    @Override
    public String execute() throws Exception {
        System.out.println("--------> TestAction.execute()");
        testService.saveTwoRoles();
        return "wangzhe";
    }

}
